﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="cadSaldo.aspx.cs" Inherits="ControleCaixa.cadSaldo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<style>
        #divPainel {
            margin: 20px;
            border-radius: 5px;
            background-color: #CCCCCC;
            box-shadow: 5px 5px 15px #CCE;
            padding: 20px;
            text-align: center;
            width: 92%;
            height: calc(100% - 170px);
            position: fixed;
        }

        .text {
            border-radius: 3px;
            width: 300px;
        }

        .Button {
            background: -moz-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #646464), color-stop(100%, #4a4a4a));
            background: -webkit-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -o-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -ms-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: linear-gradient(to bottom, #646464 0%, #4a4a4a 100%);
            filter: progid:dximagetransform.microsoft.gradient(startColorstr='#646464', endColorstr='#4a4a4a', GradientType=0);
            filter: none;
            border-radius: 5px;
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            border-left: 1px solid #5d5d5d;
            box-shadow: inset 0 0 0 1px #8a8a8a;
            -moz-box-shadow: inset 0 0 0 1px #8a8a8a;
            -webkit-box-shadow: inset 0 0 0 1px #8a8a8a;
            background: #4a4a4a url(/Imagens/grad_dark.png) repeat-x left top;
            background: -moz-linear-gradient(top, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #8a8a8a), color-stop(50%, #707070), color-stop(51%, #626262), color-stop(100%, #787878));
            background: -webkit-linear-gradient(top, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            background: -o-linear-gradient(top, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            background: -ms-linear-gradient(top, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            background: linear-gradient(to bottom, #8a8a8a 0%, #707070 50%, #626262 51%, #787878 100%);
            filter: progid:dximagetransform.microsoft.gradient(startColorstr='#8a8a8a', endColorstr='#787878', GradientType=0);
            border-bottom: 1px solid #5d5d5d;
            border-top: 1px solid #5d5d5d;
            border-right: 1px solid #5d5d5d;
            line-height: 29px;
            padding: 0 30px;
            filter: none;
        }

        .grid {
            width: 70%;
            height: calc(100% - 300px);
            border-radius: 10px;
            position: relative;
            border-radius: 10px;
            margin-left: 15%;
            background: -moz-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #646464), color-stop(100%, #4a4a4a));
            background: -webkit-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -o-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: -ms-linear-gradient(top, #646464 0%, #4a4a4a 100%);
            background: linear-gradient(to bottom, #646464 0%, #4a4a4a 100%);
        }

        .erro {
            color: red;
        }

        .liesquerda {
            width: 50%;
            text-align: right;
        }

        .lidiretira {
            width: 50%;
            text-align: left;
        }


        .liesquerdaButton {
            width: 50%;
            text-align: right;
        }

        .lidiretiraButton {
            width: 50%;
            text-align: left;
        }

        .liesquerdaButton span {
            display: none;
        }

        .lidiretiraButton span {
            display: none;
        }
    </style>
    <asp:ScriptManager ID="sc" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="updpainel" runat="server">
        <ContentTemplate>
            <div id="divPainel">
                <h3>Altera Saldo</h3>
                <table style="width: 90%;">
                    <tr>
                        <td class="liesquerda">
                            <asp:Label ID="nome" runat="server">Nome:</asp:Label>
                        </td>
                        <td class="lidiretira">
                            <asp:TextBox ID="txtNome" CssClass="text" runat="server" MaxLength="255" ValidationGroup="salvar" ReadOnly="true"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtNome" Text="*" class="erro" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="liesquerda">
                            <asp:Label ID="lblValor" runat="server">Valor:</asp:Label>
                        </td>
                        <td class="lidiretira">
                            <asp:TextBox ID="txtValor" CssClass="text" runat="server" MaxLength="255"></asp:TextBox>

                        </td>
                    </tr>
                    <tr>
                        <td class="liesquerda">
                            <asp:Label ID="lblTotal" runat="server">Total:</asp:Label>
                        </td>
                        <td class="lidiretira">
                            <asp:TextBox ID="txtTotal" CssClass="text" runat="server" MaxLength="255"></asp:TextBox>

                        </td>
                    </tr>
                    <tr>
                        <td class="liesquerdaButton">
                            <asp:Button ID="btnVoltar" CssClass="Button" runat="server" Text="Voltar" OnClick="btnVoltar_Click" CausesValidation="false" />
                        </td>
                        <td class="lidiretiraButton">
                            <asp:Button ID="btnPesquisa" CssClass="Button" runat="server" Text="Salvar" OnClick="btnPesquisa_Click" CausesValidation="true" ValidationGroup="salvar" />

                        </td>
                    </tr>
                </table>
                <br>
                <br>
                <p id="mensagem" runat="server" class="erro">
                </p>
                <p id="sucesso" runat="server" style="color: green;"/>
                <br>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
